/*
 * File:   hccodenode.h
 * Author: benoybose
 *
 * Created on May 13, 2012, 12:06 AM
 */

#ifndef HCCODENODE_H
#define	HCCODENODE_H

#include "hcstring.h"
#include "hclist.h"


extern const int NODE_IDENTIFIER;
extern const int NODE_CONSTANT;
extern const int NODE_VARDEF;

typedef char* (*xml_serialize)();

typedef struct _hccodenode {
    int node_type;
    xml_serialize to_xml;
    void* value;
} hccodenode;

hccodenode* hccodenode_create(const int type, void* node);
#endif	/* HCCODENODE_H */

